﻿using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.ComponentModel;

namespace UMFramework.UI.Compoment
{
    public partial class UserGroupButton
	{
		public UserGroupButton()
		{
			this.InitializeComponent();
			// 在此点之下插入创建对象所需的代码。
		}

        private String _Text;
        [Description("支持提示的用户文字标示")]
        [Category("控件自定义属性")]
        [DefaultValue("剑走偏锋")]
        public String Text
        {
            get { return _Text; }
            set 
            {
                _Text = value;
                this.txt_Name.Text = _Text + " [共享]";
            }
        }

        private Image _UserImage;
        [Description("支持显示的用户共享图像")]
        [Category("控件自定义属性")]
        public Image UserImage
        {
          get { return _UserImage; }
          set
          { 
              _UserImage = value;
              this.Img_User.Source = _UserImage.Source;
          }
        }
    }
}